<script>on mouseUpif me is empty thenanswer "No recipes to delete!"lock screengo cd "Table of Contents"exit mouseUpend ifif the value of the clickLine is not empty thenselect the clickLineput the value of the clickLine into thisChapterhide bg button "Abort!"answer "Delete chapter" && thisChapter && "and all of its recipes?" with "Abort" or "Proceed"if it is "Abort" thenlock screenshow bg button "Abort!"go cd "Table of Contents"exit mouseUpend ifif it is "Proceed" thenset cursor to watchlock screenshow bg button "Abort!"repeat with x = 1 to number of lines of bg fld "Recipes List" of cd thisChapterput line x of bg fld "Recipes List" of cd thisChapter into thisRecipego cd thisRecipedoMenu "Delete Card"end repeatgo cd thisChapterdoMenu "Delete Card"go cd "Table of Contents"unlock screenrepeat with x = 1 to number of lines of bg fld "Table of Contents"if line x of bg fld "Table of Contents" is thisChapter thenselect line x of bg fld "Table of Contents"delete line x of bg fld "Table of Contents"if last char of bg fld "Table of Contents" is return then delete last char ¬of bg fld "Table of Contents"exit repeatend ifend repeatend ifend ifend mouseUp</script>
</part>
<part>
<id>4</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>390</left>
<top>309</top>
<right>468</right>
<bottom>331</bottom>
</rect>
<style>rectangle</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Abort!</name>
<script>on mouseUplock screengo cd "Table of Contents"end mouseUp</script>